home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 January: Mac OS SDK / Dev.CD Jan 98 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / AIncludes / Video.a < prev    next >
Encoding:
Text File  |  1997-08-12  |  34.9 KB  |  730 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        Video.a
  3. ;
  4. ;    Contains:    Video Driver Interfaces.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Release:    Universal Interfaces 3.0.1
  8. ;
  9. ;    Copyright:    © 1986-1997 by Apple Computer, Inc., all rights reserved
  10. ;
  11. ;    Bugs?:        Please include the the file and version information (from above) with
  12. ;                the problem description.  Developers belonging to one of the Apple
  13. ;                developer programs can submit bug reports to:
  14. ;
  15. ;                    devsupport@apple.com
  16. ;
  17. ;
  18.     IF &TYPE('__VIDEO__') = 'UNDEFINED' THEN
  19. __VIDEO__ SET 1
  20.  
  21.     IF &TYPE('__QUICKDRAW__') = 'UNDEFINED' THEN
  22.     include 'Quickdraw.a'
  23.     ENDIF
  24.  
  25.  
  26. mBaseOffset                        EQU        1                    ;Id of mBaseOffset.
  27. mRowBytes                        EQU        2                    ;Video sResource parameter Id's 
  28. mBounds                            EQU        3                    ;Video sResource parameter Id's 
  29. mVersion                        EQU        4                    ;Video sResource parameter Id's 
  30. mHRes                            EQU        5                    ;Video sResource parameter Id's 
  31. mVRes                            EQU        6                    ;Video sResource parameter Id's 
  32. mPixelType                        EQU        7                    ;Video sResource parameter Id's 
  33. mPixelSize                        EQU        8                    ;Video sResource parameter Id's 
  34. mCmpCount                        EQU        9                    ;Video sResource parameter Id's 
  35. mCmpSize                        EQU        10                    ;Video sResource parameter Id's 
  36. mPlaneBytes                        EQU        11                    ;Video sResource parameter Id's 
  37. mVertRefRate                    EQU        14                    ;Video sResource parameter Id's 
  38. mVidParams                        EQU        1                    ;Video parameter block id.
  39. mTable                            EQU        2                    ;Offset to the table.
  40. mPageCnt                        EQU        3                    ;Number of pages
  41. mDevType                        EQU        4                    ;Device Type
  42. oneBitMode                        EQU        128                    ;Id of OneBitMode Parameter list.
  43. twoBitMode                        EQU        129                    ;Id of TwoBitMode Parameter list.
  44. fourBitMode                        EQU        130                    ;Id of FourBitMode Parameter list.
  45. eightBitMode                    EQU        131                    ;Id of EightBitMode Parameter list.
  46.  
  47. sixteenBitMode                    EQU        132                    ;Id of SixteenBitMode Parameter list.
  48. thirtyTwoBitMode                EQU        133                    ;Id of ThirtyTwoBitMode Parameter list.
  49. firstVidMode                    EQU        128                    ;The new, better way to do the above. 
  50. secondVidMode                    EQU        129                    ; QuickDraw only supports six video 
  51. thirdVidMode                    EQU        130                    ; at this time.      
  52. fourthVidMode                    EQU        131
  53. fifthVidMode                    EQU        132
  54. sixthVidMode                    EQU        133
  55. spGammaDir                        EQU        64
  56. spVidNamesDir                    EQU        65
  57.  
  58. ;  csTimingFormat values in VDTimingInfo 
  59. ;  look in the declaration rom for timing info 
  60.  
  61. kDeclROMtables                    EQU        'decl'
  62. ;  Size of a block of EDID (Extended Display Identification Data) 
  63.  
  64. kDDCBlockSize                    EQU        128
  65. ;  ddcBlockType constants
  66.  
  67. kDDCBlockTypeEDID                EQU        0                    ; EDID block type. 
  68. ;  ddcFlags constants
  69.  
  70. kDDCForceReadBit                EQU        0                    ; Force a new read of the EDID. 
  71. kDDCForceReadMask                EQU        $01                    ; Mask for kddcForceReadBit. 
  72.  
  73. ;  Timing mode constants for Display Manager MultiMode support
  74. ;    Corresponding    .h equates are in Video.h
  75. ;                    .a equates are in Video.a
  76. ;                    .r equates are in DepVideoEqu.r
  77. ;    
  78. ;    The second enum is the old names (for compatibility).
  79. ;    The first enum is the new names.
  80. ;
  81.  
  82.  
  83. timingInvalid                    EQU        0                    ;    Unknown timing… force user to confirm. 
  84. timingInvalid_SM_T24            EQU        8                    ;    Work around bug in SM Thunder24 card.
  85. timingApple_FixedRateLCD        EQU        42                    ;    Lump all fixed-rate LCDs into one category.
  86. timingApple_512x384_60hz        EQU        130                    ;  512x384  (60 Hz) Rubik timing. 
  87. timingApple_560x384_60hz        EQU        135                    ;  560x384  (60 Hz) Rubik-560 timing. 
  88. timingApple_640x480_67hz        EQU        140                    ;  640x480  (67 Hz) HR timing. 
  89. timingApple_640x400_67hz        EQU        145                    ;  640x400  (67 Hz) HR-400 timing. 
  90. timingVESA_640x480_60hz            EQU        150                    ;  640x480  (60 Hz) VGA timing. 
  91. timingVESA_640x480_72hz            EQU        152                    ;  640x480  (72 Hz) VGA timing. 
  92. timingVESA_640x480_75hz            EQU        154                    ;  640x480  (75 Hz) VGA timing. 
  93. timingVESA_640x480_85hz            EQU        158                    ;  640x480  (85 Hz) VGA timing. 
  94. timingGTF_640x480_120hz            EQU        159                    ;  640x480  (120 Hz) VESA Generalized Timing Formula 
  95. timingApple_640x870_75hz        EQU        160                    ;  640x870  (75 Hz) FPD timing.
  96. timingApple_640x818_75hz        EQU        165                    ;  640x818  (75 Hz) FPD-818 timing.
  97. timingApple_832x624_75hz        EQU        170                    ;  832x624  (75 Hz) GoldFish timing.
  98. timingVESA_800x600_56hz            EQU        180                    ;  800x600  (56 Hz) SVGA timing. 
  99. timingVESA_800x600_60hz            EQU        182                    ;  800x600  (60 Hz) SVGA timing. 
  100. timingVESA_800x600_72hz            EQU        184                    ;  800x600  (72 Hz) SVGA timing. 
  101. timingVESA_800x600_75hz            EQU        186                    ;  800x600  (75 Hz) SVGA timing. 
  102. timingVESA_800x600_85hz            EQU        188                    ;  800x600  (85 Hz) SVGA timing. 
  103. timingVESA_1024x768_60hz        EQU        190                    ; 1024x768  (60 Hz) VESA 1K-60Hz timing. 
  104. timingVESA_1024x768_70hz        EQU        200                    ; 1024x768  (70 Hz) VESA 1K-70Hz timing. 
  105. timingVESA_1024x768_75hz        EQU        204                    ; 1024x768  (75 Hz) VESA 1K-75Hz timing (very similar to timingApple_1024x768_75hz). 
  106. timingVESA_1024x768_85hz        EQU        208                    ; 1024x768  (85 Hz) VESA timing. 
  107. timingApple_1024x768_75hz        EQU        210                    ; 1024x768  (75 Hz) Apple 19" RGB. 
  108. timingApple_1152x870_75hz        EQU        220                    ; 1152x870  (75 Hz) Apple 21" RGB. 
  109. timingAppleNTSC_ST                EQU        230                    ;  512x384  (60 Hz, interlaced, non-convolved). 
  110. timingAppleNTSC_FF                EQU        232                    ;  640x480  (60 Hz, interlaced, non-convolved). 
  111. timingAppleNTSC_STconv            EQU        234                    ;  512x384  (60 Hz, interlaced, convolved). 
  112. timingAppleNTSC_FFconv            EQU        236                    ;  640x480  (60 Hz, interlaced, convolved). 
  113. timingApplePAL_ST                EQU        238                    ;  640x480  (50 Hz, interlaced, non-convolved). 
  114. timingApplePAL_FF                EQU        240                    ;  768x576  (50 Hz, interlaced, non-convolved). 
  115. timingApplePAL_STconv            EQU        242                    ;  640x480  (50 Hz, interlaced, convolved). 
  116. timingApplePAL_FFconv            EQU        244                    ;  768x576  (50 Hz, interlaced, convolved). 
  117. timingVESA_1280x960_75hz        EQU        250                    ; 1280x960  (75 Hz) 
  118. timingVESA_1280x960_60hz        EQU        252                    ; 1280x960  (60 Hz) 
  119. timingVESA_1280x960_85hz        EQU        254                    ; 1280x960  (85 Hz) 
  120. timingVESA_1280x1024_60hz        EQU        260                    ; 1280x1024 (60 Hz) 
  121. timingVESA_1280x1024_75hz        EQU        262                    ; 1280x1024 (75 Hz) 
  122. timingVESA_1280x1024_85hz        EQU        268                    ; 1280x1024 (85 Hz) 
  123. timingVESA_1600x1200_60hz        EQU        280                    ; 1600x1200 (60 Hz) VESA proposed timing. 
  124. timingVESA_1600x1200_65hz        EQU        282                    ; 1600x1200 (65 Hz) VESA proposed timing. 
  125. timingVESA_1600x1200_70hz        EQU        284                    ; 1600x1200 (70 Hz) VESA proposed timing. 
  126. timingVESA_1600x1200_75hz        EQU        286                    ; 1600x1200 (75 Hz) VESA proposed timing. 
  127. timingVESA_1600x1200_80hz        EQU        288                    ; 1600x1200 (80 Hz) VESA proposed timing (pixel clock is 216 Mhz dot clock). 
  128. timingSMPTE240M_60hz            EQU        400                    ; 60Hz V, 33.75KHz H, interlaced timing, 16:9 aspect, typical resolution of 1920x1035. 
  129. timingFilmRate_48hz                EQU        410                    ; 48Hz V, 25.20KHz H, non-interlaced timing, typical resolution of 640x480. 
  130.  
  131.  
  132. timingApple12                    EQU        130
  133. timingApple12x                    EQU        135
  134. timingApple13                    EQU        140
  135. timingApple13x                    EQU        145
  136. timingAppleVGA                    EQU        150
  137. timingApple15                    EQU        160
  138. timingApple15x                    EQU        165
  139. timingApple16                    EQU        170
  140. timingAppleSVGA                    EQU        180
  141. timingApple1Ka                    EQU        190
  142. timingApple1Kb                    EQU        200
  143. timingApple19                    EQU        210
  144. timingApple21                    EQU        220
  145.  
  146. ;  csConnectFlags values in VDDisplayConnectInfo 
  147.  
  148. kAllModesValid                    EQU        0                    ; All modes not trimmed by primary init are good close enough to try 
  149. kAllModesSafe                    EQU        1                    ; All modes not trimmed by primary init are know to be safe 
  150. kReportsTagging                    EQU        2                    ; Can detect tagged displays (to identify smart monitors) 
  151. kHasDirectConnection            EQU        3                    ; True implies that driver can talk directly to device (e.g. serial data link via sense lines) 
  152. kIsMonoDev                        EQU        4                    ; Says whether there’s an RGB (0) or Monochrome (1) connection. 
  153. kUncertainConnection            EQU        5                    ; There may not be a display (no sense lines?). 
  154. kTaggingInfoNonStandard            EQU        6                    ; Set when csConnectTaggedType/csConnectTaggedData are non-standard (i.e., not the Apple CRT sense codes). 
  155. kReportsDDCConnection            EQU        7                    ; Card can do ddc (set kHasDirectConnect && kHasDDCConnect if you actually found a ddc display). 
  156. kHasDDCConnection                EQU        8                    ; Card has ddc connect now. 
  157. kConnectionInactive                EQU        9                    ; Set when the connection is NOT currently active (generally used in a multiconnection environment). 
  158. kDependentConnection            EQU        10                    ; Set when some ascpect of THIS connection depends on another (will generally be set in a kModeSimulscan environment). 
  159. kBuiltInConnection                EQU        11                    ; Set when connection is KNOWN to be built-in (this is not the same as kHasDirectConnection). 
  160.  
  161. ;  csDisplayType values in VDDisplayConnectInfo 
  162.  
  163. kUnknownConnect                    EQU        1                    ; Not sure how we’ll use this, but seems like a good idea. 
  164. kPanelConnect                    EQU        2                    ; For use with fixed-in-place LCD panels. 
  165. kPanelTFTConnect                EQU        2                    ; Alias for kPanelConnect 
  166. kFixedModeCRTConnect            EQU        3                    ;  For use with fixed-mode (i.e., very limited range) displays. 
  167. kMultiModeCRT1Connect            EQU        4                    ; 320x200 maybe, 12" maybe, 13" (default), 16" certain, 19" maybe, 21" maybe 
  168. kMultiModeCRT2Connect            EQU        5                    ; 320x200 maybe, 12" maybe, 13" certain, 16" (default), 19" certain, 21" maybe 
  169. kMultiModeCRT3Connect            EQU        6                    ; 320x200 maybe, 12" maybe, 13" certain, 16" certain, 19" default, 21" certain 
  170. kMultiModeCRT4Connect            EQU        7                    ; Expansion to large multi mode (not yet used) 
  171. kModelessConnect                EQU        8                    ; Expansion to modeless model (not yet used) 
  172. kFullPageConnect                EQU        9                    ; 640x818 (to get 8bpp in 512K case) and 640x870 (these two only) 
  173. kVGAConnect                        EQU        10                    ; 640x480 VGA default -- question everything else 
  174. kNTSCConnect                    EQU        11                    ; NTSC ST (default), FF, STconv, FFconv 
  175. kPALConnect                        EQU        12                    ; PAL ST (default), FF, STconv, FFconv 
  176. kHRConnect                        EQU        13                    ; Straight-6 connect -- 640x480 and 640x400 (to get 8bpp in 256K case) (these two only) 
  177. kPanelFSTNConnect                EQU        14                    ; For use with fixed-in-place LCD FSTN (aka “Supertwist”) panels 
  178. kMonoTwoPageConnect                EQU        15                    ; 1152x870 Apple color two-page display 
  179. kColorTwoPageConnect            EQU        16                    ; 1152x870 Apple B&W two-page display 
  180. kColor16Connect                    EQU        17                    ; 832x624 Apple B&W two-page display 
  181. kColor19Connect                    EQU        18                    ; 1024x768 Apple B&W two-page display 
  182. kGenericCRT                        EQU        19                    ; Indicates nothing except that connection is CRT in nature. 
  183. kGenericLCD                        EQU        20                    ; Indicates nothing except that connection is LCD in nature. 
  184. kDDCConnect                        EQU        21                    ; DDC connection, always set kHasDDCConnection 
  185. ;  csTimingFlags values in VDTimingInfoRec 
  186.  
  187. kModeValid                        EQU        0                    ; Says that this mode should NOT be trimmed. 
  188. kModeSafe                        EQU        1                    ; This mode does not need confirmation 
  189. kModeDefault                    EQU        2                    ; This is the default mode for this type of connection 
  190. kModeShowNow                    EQU        3                    ; This mode should always be shown (even though it may require a confirm) 
  191. kModeNotResize                    EQU        4                    ; This mode should not be used to resize the display (eg. mode selects a different connector on card) 
  192. kModeRequiresPan                EQU        5                    ; This mode has more pixels than are actually displayed 
  193. kModeInterlaced                    EQU        6                    ; This mode is interlaced (single pixel lines look bad). 
  194. kModeShowNever                    EQU        7                    ; This mode should not be shown in the user interface. 
  195. kModeSimulscan                    EQU        8                    ; Indicates that more than one display connection can be driven from a single framebuffer controller. 
  196. kModeNotPreset                    EQU        9                    ; Indicates that the timing is not a factory preset for the current display (geometry may need correction) 
  197. kModeBuiltIn                    EQU        10                    ; Indicates that the display mode is for the built-in connect only (on multiconnect devices like the PB 3400) Only the driver is quieried 
  198. ;  csDepthFlags in VDVideoParametersInfoRec 
  199.  
  200. kDepthDependent                    EQU        0                    ; Says that this depth mode may cause dependent changes in other framebuffers (and . 
  201. ;  csResolutionFlags bit flags for VDResolutionInfoRec 
  202.  
  203. kResolutionHasMultipleDepthSizes EQU    0                    ; Says that this mode has different csHorizontalPixels, csVerticalLines at different depths (usually slightly larger at lower depths) 
  204.  
  205.  
  206.                                                             ;    Power Mode constants for VDPowerStateRec.powerState.    
  207. kAVPowerOff                        EQU        0
  208. kAVPowerStandby                    EQU        1
  209. kAVPowerSuspend                    EQU        2
  210. kAVPowerOn                        EQU        3
  211.  
  212.                                                             ;    Power Mode masks and bits for VDPowerStateRec.powerFlags.    
  213. kPowerStateNeedsRefresh            EQU        0
  214. kPowerStateNeedsRefreshMask        EQU        $00000001
  215.  
  216.  
  217.                                                             ; Control Codes 
  218. cscReset                        EQU        0
  219. cscKillIO                        EQU        1
  220. cscSetMode                        EQU        2
  221. cscSetEntries                    EQU        3
  222. cscSetGamma                        EQU        4
  223. cscGrayPage                        EQU        5
  224. cscGrayScreen                    EQU        5
  225. cscSetGray                        EQU        6
  226. cscSetInterrupt                    EQU        7
  227. cscDirectSetEntries                EQU        8
  228. cscSetDefaultMode                EQU        9
  229. cscSwitchMode                    EQU        10
  230. cscSetSync                        EQU        11
  231. cscSavePreferredConfiguration    EQU        16
  232. cscSetHardwareCursor            EQU        22
  233. cscDrawHardwareCursor            EQU        23
  234. cscSetConvolution                EQU        24
  235. cscSetPowerState                EQU        25
  236. cscPrivateControlCall            EQU        26                    ; Takes a VDPrivateSelectorDataRec
  237. cscSetMultiConnect                EQU        28                    ; From a GDI point of view, this call should be implemented completely in the HAL and not at all in the core.
  238. cscSetClutBehavior                EQU        29                    ; Takes a VDClutBehavior 
  239. cscUnusedCall                    EQU        127                    ; This call used to expend the scrn resource.  Its imbedded data contains more control info 
  240.  
  241.                                                             ; Status Codes 
  242. cscGetMode                        EQU        2
  243. cscGetEntries                    EQU        3
  244. cscGetPageCnt                    EQU        4
  245. cscGetPages                        EQU        4                    ; This is what C&D 2 calls it. 
  246. cscGetPageBase                    EQU        5
  247. cscGetBaseAddr                    EQU        5                    ; This is what C&D 2 calls it. 
  248. cscGetGray                        EQU        6
  249. cscGetInterrupt                    EQU        7
  250. cscGetGamma                        EQU        8
  251. cscGetDefaultMode                EQU        9
  252. cscGetCurMode                    EQU        10
  253. cscGetSync                        EQU        11
  254. cscGetConnection                EQU        12                    ; Return information about the connection to the display 
  255. cscGetModeTiming                EQU        13                    ; Return timing info for a mode 
  256. cscGetModeBaseAddress            EQU        14                    ; Return base address information about a particular mode 
  257. cscGetScanProc                    EQU        15                    ; QuickTime scan chasing routine 
  258. cscGetPreferredConfiguration    EQU        16
  259. cscGetNextResolution            EQU        17
  260. cscGetVideoParameters            EQU        18
  261. cscGetGammaInfoList                EQU        20
  262. cscRetrieveGammaTable            EQU        21
  263. cscSupportsHardwareCursor        EQU        22
  264. cscGetHardwareCursorDrawState    EQU        23
  265. cscGetConvolution                EQU        24
  266. cscGetPowerState                EQU        25
  267. cscPrivateStatusCall            EQU        26                    ; Takes a VDPrivateSelectorDataRec
  268. cscGetDDCBlock                    EQU        27                    ; Takes a VDDDCBlockRec  
  269. cscGetMultiConnect                EQU        28                    ; From a GDI point of view, this call should be implemented completely in the HAL and not at all in the core.
  270. cscGetClutBehavior                EQU        29                    ; Takes a VDClutBehavior 
  271. ;  Bit definitions for the Get/Set Sync call
  272.  
  273. kDisableHorizontalSyncBit        EQU        0
  274. kDisableVerticalSyncBit            EQU        1
  275. kDisableCompositeSyncBit        EQU        2
  276. kEnableSyncOnBlue                EQU        3
  277. kEnableSyncOnGreen                EQU        4
  278. kEnableSyncOnRed                EQU        5
  279. kNoSeparateSyncControlBit        EQU        6
  280. kTriStateSyncBit                EQU        7
  281. kHorizontalSyncMask                EQU        $01
  282. kVerticalSyncMask                EQU        $02
  283. kCompositeSyncMask                EQU        $04
  284. kDPMSSyncMask                    EQU        $07
  285. kTriStateSyncMask                EQU        $80
  286. kSyncOnBlueMask                    EQU        $08
  287. kSyncOnGreenMask                EQU        $10
  288. kSyncOnRedMask                    EQU        $20
  289. kSyncOnMask                        EQU        $38
  290.  
  291.                                                             ;    Power Mode constants for translating DPMS modes to Get/SetSync calls.    
  292. kDPMSSyncOn                        EQU        0
  293. kDPMSSyncStandby                EQU        1
  294. kDPMSSyncSuspend                EQU        2
  295. kDPMSSyncOff                    EQU        7
  296. ;  Bit definitions for the Get/Set Convolution call
  297.  
  298. kConvolved                        EQU        0
  299. kLiveVideoPassThru                EQU        1
  300. kConvolvedMask                    EQU        $01
  301. kLiveVideoPassThruMask            EQU        $02
  302.  
  303. VPBlock                    RECORD 0
  304. vpBaseOffset             ds.l    1                ; offset: $0 (0)        ; Offset to page zero of video RAM (From minorBaseOS).
  305. vpRowBytes                 ds.w    1                ; offset: $4 (4)        ; Width of each row of video memory.
  306. vpBounds                 ds        Rect            ; offset: $6 (6)        ; BoundsRect for the video display (gives dimensions).
  307. vpVersion                 ds.w    1                ; offset: $E (14)        ; PixelMap version number.
  308. vpPackType                 ds.w    1                ; offset: $10 (16)
  309. vpPackSize                 ds.l    1                ; offset: $12 (18)
  310. vpHRes                     ds.l    1                ; offset: $16 (22)        ; Horizontal resolution of the device (pixels per inch).
  311. vpVRes                     ds.l    1                ; offset: $1A (26)        ; Vertical resolution of the device (pixels per inch).
  312. vpPixelType                 ds.w    1                ; offset: $1E (30)        ; Defines the pixel type.
  313. vpPixelSize                 ds.w    1                ; offset: $20 (32)        ; Number of bits in pixel.
  314. vpCmpCount                 ds.w    1                ; offset: $22 (34)        ; Number of components in pixel.
  315. vpCmpSize                 ds.w    1                ; offset: $24 (36)        ; Number of bits per component
  316. vpPlaneBytes             ds.l    1                ; offset: $26 (38)        ; Offset from one plane to the next.
  317. sizeof                     EQU *                    ; size:   $2A (42)
  318.                         ENDR
  319. ; typedef struct VPBlock *                VPBlockPtr
  320.  
  321. VDEntryRecord            RECORD 0
  322. csTable                     ds.l    1                ; offset: $0 (0)        ; (long) pointer to color table entry=value, r,g,b:INTEGER
  323. sizeof                     EQU *                    ; size:   $4 (4)
  324.                         ENDR
  325. ; typedef struct VDEntryRecord *        VDEntRecPtr
  326.  
  327. ;  Parm block for SetGray control call 
  328. VDGrayRecord            RECORD 0
  329. csMode                     ds.b    1                ; offset: $0 (0)        ; Same as GDDevType value (0=color, 1=mono)
  330. filler                     ds.b    1                ; offset: $1 (1)
  331. sizeof                     EQU *                    ; size:   $2 (2)
  332.                         ENDR
  333. ; typedef struct VDGrayRecord *            VDGrayPtr
  334.  
  335. ;  Parm block for SetInterrupt call 
  336. VDFlagRecord            RECORD 0
  337. csMode                     ds.b    1                ; offset: $0 (0)
  338. filler                     ds.b    1                ; offset: $1 (1)
  339. sizeof                     EQU *                    ; size:   $2 (2)
  340.                         ENDR
  341. ; typedef struct VDFlagRecord *            VDFlagRecPtr
  342.  
  343. ;  Parm block for SetEntries control call 
  344. VDSetEntryRecord        RECORD 0
  345. csTable                     ds.l    1                ; offset: $0 (0)        ; Pointer to an array of color specs
  346. csStart                     ds.w    1                ; offset: $4 (4)        ; Which spec in array to start with, or -1
  347. csCount                     ds.w    1                ; offset: $6 (6)        ; Number of color spec entries to set
  348. sizeof                     EQU *                    ; size:   $8 (8)
  349.                         ENDR
  350. ; typedef struct VDSetEntryRecord *        VDSetEntryPtr
  351.  
  352. ;  Parm block for SetGamma control call 
  353. VDGammaRecord            RECORD 0
  354. csGTable                 ds.l    1                ; offset: $0 (0)        ; pointer to gamma table
  355. sizeof                     EQU *                    ; size:   $4 (4)
  356.                         ENDR
  357. ; typedef struct VDGammaRecord *        VDGamRecPtr
  358.  
  359. VDBaseAddressInfoRec    RECORD 0
  360. csDevData                 ds.l    1                ; offset: $0 (0)        ;  LONGINT - (long) timing mode 
  361. csDevBase                 ds.l    1                ; offset: $4 (4)        ;  LONGINT - (long) base address of the mode 
  362. csModeReserved             ds.w    1                ; offset: $8 (8)        ;  INTEGER - (short) will some day be the depth 
  363. csModeBase                 ds.l    1                ; offset: $A (10)        ;  LONGINT - (long) reserved 
  364. sizeof                     EQU *                    ; size:   $E (14)
  365.                         ENDR
  366. ; typedef struct VDBaseAddressInfoRec *    VDBaseAddressInfoPtr
  367.  
  368. VDSwitchInfoRec            RECORD 0
  369. csMode                     ds.w    1                ; offset: $0 (0)        ; (word) mode depth
  370. csData                     ds.l    1                ; offset: $2 (2)        ; (long) functional sResource of mode
  371. csPage                     ds.w    1                ; offset: $6 (6)        ; (word) page to switch in
  372. csBaseAddr                 ds.l    1                ; offset: $8 (8)        ; (long) base address of page (return value)
  373. csReserved                 ds.l    1                ; offset: $C (12)        ; (long) Reserved (set to 0) 
  374. sizeof                     EQU *                    ; size:   $10 (16)
  375.                         ENDR
  376. ; typedef struct VDSwitchInfoRec *        VDSwitchInfoPtr
  377.  
  378. VDTimingInfoRec            RECORD 0
  379. csTimingMode             ds.l    1                ; offset: $0 (0)        ;  LONGINT - (long) timing mode (a la InitGDevice) 
  380. csTimingReserved         ds.l    1                ; offset: $4 (4)        ;  LONGINT - (long) reserved 
  381. csTimingFormat             ds.l    1                ; offset: $8 (8)        ;  LONGINT - (long) what format is the timing info 
  382. csTimingData             ds.l    1                ; offset: $C (12)        ;  LONGINT - (long) data supplied by driver 
  383. csTimingFlags             ds.l    1                ; offset: $10 (16)        ;  LONGINT - (long) mode within device 
  384. sizeof                     EQU *                    ; size:   $14 (20)
  385.                         ENDR
  386. ; typedef struct VDTimingInfoRec *        VDTimingInfoPtr
  387.  
  388. VDDisplayConnectInfoRec    RECORD 0
  389. csDisplayType             ds.w    1                ; offset: $0 (0)        ;  INTEGER - (word) Type of display connected 
  390. csConnectTaggedType         ds.b    1                ; offset: $2 (2)        ;  BYTE - type of tagging 
  391. csConnectTaggedData         ds.b    1                ; offset: $3 (3)        ;  BYTE - tagging data 
  392. csConnectFlags             ds.l    1                ; offset: $4 (4)        ;  LONGINT - (long) tell us about the connection 
  393. csDisplayComponent         ds.l    1                ; offset: $8 (8)        ;  LONGINT - (long) if the card has a direct connection to the display, it returns the display component here (FUTURE) 
  394. csConnectReserved         ds.l    1                ; offset: $C (12)        ;  LONGINT - (long) reserved 
  395. sizeof                     EQU *                    ; size:   $10 (16)
  396.                         ENDR
  397. ; typedef struct VDDisplayConnectInfoRec * VDDisplayConnectInfoPtr
  398.  
  399. VDMultiConnectInfoRec    RECORD 0
  400. csDisplayCountOrNumber     ds.l    1                ; offset: $0 (0)        ;  For GetMultiConnect, returns count n of 1..n connections; otherwise, indicates the ith connection.
  401. csConnectInfo             ds        VDDisplayConnectInfoRec ; offset: $4 (4) ;  Standard VDDisplayConnectionInfo for connection i.
  402. sizeof                     EQU *                    ; size:   $14 (20)
  403.                         ENDR
  404. ; typedef struct VDMultiConnectInfoRec * VDMultiConnectInfoPtr
  405.  
  406. ;  RawSenseCode
  407. ;    This abstract data type is not exactly abstract.  Rather, it is merely enumerated constants
  408. ;    for the possible raw sense code values when 'standard' sense code hardware is implemented.
  409. ;
  410. ;    For 'standard' sense code hardware, the raw sense is obtained as follows:
  411. ;        • Instruct the frame buffer controller NOT to actively drive any of the monitor sense lines
  412. ;        • Read the state of the monitor sense lines 2, 1, and 0.  (2 is the MSB, 0 the LSB)
  413. ;
  414. ;    IMPORTANT Note: 
  415. ;    When the 'kTaggingInfoNonStandard' bit of 'csConnectFlags' is FALSE, then these constants 
  416. ;    are valid 'csConnectTaggedType' values in 'VDDisplayConnectInfo' 
  417. ;
  418. ;
  419.  
  420. ; typedef unsigned char                 RawSenseCode
  421.  
  422.  
  423. kRSCZero                        EQU        0
  424. kRSCOne                            EQU        1
  425. kRSCTwo                            EQU        2
  426. kRSCThree                        EQU        3
  427. kRSCFour                        EQU        4
  428. kRSCFive                        EQU        5
  429. kRSCSix                            EQU        6
  430. kRSCSeven                        EQU        7
  431.  
  432. ;  ExtendedSenseCode
  433. ;    This abstract data type is not exactly abstract.  Rather, it is merely enumerated constants
  434. ;    for the values which are possible when the extended sense algorithm is applied to hardware
  435. ;    which implements 'standard' sense code hardware.
  436. ;
  437. ;     For 'standard' sense code hardware, the extended sense code algorithm is as follows:
  438. ;    (Note:  as described here, sense line 'A' corresponds to '2', 'B' to '1', and 'C' to '0')
  439. ;        • Drive sense line 'A' low and read the values of 'B' and 'C'.  
  440. ;        • Drive sense line 'B' low and read the values of 'A' and 'C'.
  441. ;        • Drive sense line 'C' low and read the values of 'A' and 'B'.
  442. ;
  443. ;    In this way, a six-bit number of the form BC/AC/AB is generated. 
  444. ;
  445. ;    IMPORTANT Note: 
  446. ;    When the 'kTaggingInfoNonStandard' bit of 'csConnectFlags' is FALSE, then these constants 
  447. ;    are valid 'csConnectTaggedData' values in 'VDDisplayConnectInfo' 
  448. ;
  449. ;
  450.  
  451. ; typedef unsigned char                 ExtendedSenseCode
  452.  
  453.  
  454. kESCZero21Inch                    EQU        $00                    ; 21" RGB                                 
  455. kESCOnePortraitMono                EQU        $14                    ; Portrait Monochrome                     
  456. kESCTwo12Inch                    EQU        $21                    ; 12" RGB                                
  457. kESCThree21InchRadius            EQU        $31                    ; 21" RGB (Radius)                        
  458. kESCThree21InchMonoRadius        EQU        $34                    ; 21" Monochrome (Radius)                 
  459. kESCThree21InchMono                EQU        $35                    ; 21" Monochrome                        
  460. kESCFourNTSC                    EQU        $0A                    ; NTSC                                 
  461. kESCFivePortrait                EQU        $1E                    ; Portrait RGB                         
  462. kESCSixMSB1                        EQU        $03                    ; MultiScan Band-1 (12" thru 1Six")    
  463. kESCSixMSB2                        EQU        $0B                    ; MultiScan Band-2 (13" thru 19")        
  464. kESCSixMSB3                        EQU        $23                    ; MultiScan Band-3 (13" thru 21")        
  465. kESCSixStandard                    EQU        $2B                    ; 13"/14" RGB or 12" Monochrome        
  466. kESCSevenPAL                    EQU        $00                    ; PAL                                    
  467. kESCSevenNTSC                    EQU        $14                    ; NTSC                                 
  468. kESCSevenVGA                    EQU        $17                    ; VGA                                     
  469. kESCSeven16Inch                    EQU        $2D                    ; 16" RGB (GoldFish)                      
  470. kESCSevenPALAlternate            EQU        $30                    ; PAL (Alternate)                         
  471. kESCSeven19Inch                    EQU        $3A                    ; Third-Party 19”                        
  472. kESCSevenNoDisplay                EQU        $3F                    ; No display connected                 
  473. ;  DepthMode
  474. ;    This abstract data type is used to to reference RELATIVE pixel depths.
  475. ;    Its definition is largely derived from its past usage, analogous to 'xxxVidMode'
  476. ;
  477. ;    Bits per pixel DOES NOT directly map to 'DepthMode'  For example, on some
  478. ;    graphics hardware, 'kDepthMode1' may represent 1 BPP, whereas on other
  479. ;    hardware, 'kDepthMode1' may represent 8BPP.
  480. ;
  481. ;    DepthMode IS considered to be ordinal, i.e., operations such as <, >, ==, etc.
  482. ;    behave as expected.  The values of the constants which comprise the set are such
  483. ;    that 'kDepthMode4 < kDepthMode6' behaves as expected.
  484. ;
  485.  
  486. ; typedef unsigned short                 DepthMode
  487.  
  488.  
  489. kDepthMode1                        EQU        128
  490. kDepthMode2                        EQU        129
  491. kDepthMode3                        EQU        130
  492. kDepthMode4                        EQU        131
  493. kDepthMode5                        EQU        132
  494. kDepthMode6                        EQU        133
  495.  
  496. kFirstDepthMode                    EQU        128                    ; These constants are obsolete, and just included    
  497. kSecondDepthMode                EQU        129                    ; for clients that have converted to the above        
  498. kThirdDepthMode                    EQU        130                    ; kDepthModeXXX constants.                            
  499. kFourthDepthMode                EQU        131
  500. kFifthDepthMode                    EQU        132
  501. kSixthDepthMode                    EQU        133
  502.  
  503. VDPageInfo                RECORD 0
  504. csMode                     ds.w    1                ; offset: $0 (0)        ; (word) mode within device
  505. csData                     ds.l    1                ; offset: $2 (2)        ; (long) data supplied by driver
  506. csPage                     ds.w    1                ; offset: $6 (6)        ; (word) page to switch in
  507. csBaseAddr                 ds.l    1                ; offset: $8 (8)        ; (long) base address of page
  508. sizeof                     EQU *                    ; size:   $C (12)
  509.                         ENDR
  510. ; typedef struct VDPageInfo *            VDPgInfoPtr
  511.  
  512. VDSizeInfo                RECORD 0
  513. csHSize                     ds.w    1                ; offset: $0 (0)        ; (word) desired/returned h size
  514. csHPos                     ds.w    1                ; offset: $2 (2)        ; (word) desired/returned h position
  515. csVSize                     ds.w    1                ; offset: $4 (4)        ; (word) desired/returned v size
  516. csVPos                     ds.w    1                ; offset: $6 (6)        ; (word) desired/returned v position
  517. sizeof                     EQU *                    ; size:   $8 (8)
  518.                         ENDR
  519. ; typedef struct VDSizeInfo *            VDSzInfoPtr
  520.  
  521. VDSettings                RECORD 0
  522. csParamCnt                 ds.w    1                ; offset: $0 (0)        ; (word) number of params
  523. csBrightMax                 ds.w    1                ; offset: $2 (2)        ; (word) max brightness
  524. csBrightDef                 ds.w    1                ; offset: $4 (4)        ; (word) default brightness
  525. csBrightVal                 ds.w    1                ; offset: $6 (6)        ; (word) current brightness
  526. csCntrstMax                 ds.w    1                ; offset: $8 (8)        ; (word) max contrast
  527. csCntrstDef                 ds.w    1                ; offset: $A (10)        ; (word) default contrast
  528. csCntrstVal                 ds.w    1                ; offset: $C (12)        ; (word) current contrast
  529. csTintMax                 ds.w    1                ; offset: $E (14)        ; (word) max tint
  530. csTintDef                 ds.w    1                ; offset: $10 (16)        ; (word) default tint
  531. csTintVal                 ds.w    1                ; offset: $12 (18)        ; (word) current tint
  532. csHueMax                 ds.w    1                ; offset: $14 (20)        ; (word) max hue
  533. csHueDef                 ds.w    1                ; offset: $16 (22)        ; (word) default hue
  534. csHueVal                 ds.w    1                ; offset: $18 (24)        ; (word) current hue
  535. csHorizDef                 ds.w    1                ; offset: $1A (26)        ; (word) default horizontal
  536. csHorizVal                 ds.w    1                ; offset: $1C (28)        ; (word) current horizontal
  537. csHorizMax                 ds.w    1                ; offset: $1E (30)        ; (word) max horizontal
  538. csVertDef                 ds.w    1                ; offset: $20 (32)        ; (word) default vertical
  539. csVertVal                 ds.w    1                ; offset: $22 (34)        ; (word) current vertical
  540. csVertMax                 ds.w    1                ; offset: $24 (36)        ; (word) max vertical
  541. sizeof                     EQU *                    ; size:   $26 (38)
  542.                         ENDR
  543. ; typedef struct VDSettings *            VDSettingsPtr
  544.  
  545. VDDefMode                RECORD 0
  546. csID                     ds.b    1                ; offset: $0 (0)
  547. filler                     ds.b    1                ; offset: $1 (1)
  548. sizeof                     EQU *                    ; size:   $2 (2)
  549.                         ENDR
  550. ; typedef struct VDDefMode *            VDDefModePtr
  551.  
  552. VDSyncInfoRec            RECORD 0
  553. csMode                     ds.b    1                ; offset: $0 (0)
  554. csFlags                     ds.b    1                ; offset: $1 (1)
  555. sizeof                     EQU *                    ; size:   $2 (2)
  556.                         ENDR
  557. ; typedef struct VDSyncInfoRec *        VDSyncInfoPtr
  558.  
  559. ; typedef unsigned long                 DisplayModeID
  560.  
  561. ; typedef unsigned long                 VideoDeviceType
  562.  
  563. ; typedef unsigned long                 GammaTableID
  564.  
  565. ;  Constants for the GetNextResolution call 
  566.  
  567. kDisplayModeIDCurrent            EQU        $00                    ; Reference the Current DisplayModeID 
  568. kDisplayModeIDInvalid            EQU        $FFFFFFFF            ; A bogus DisplayModeID in all cases 
  569. kDisplayModeIDFindFirstResolution EQU    $FFFFFFFE            ; Used in cscGetNextResolution to reset iterator 
  570. kDisplayModeIDNoMoreResolutions    EQU        $FFFFFFFD            ; Used in cscGetNextResolution to indicate End Of List 
  571. ;  Constants for the GetGammaInfoList call 
  572.  
  573. kGammaTableIDFindFirst            EQU        $FFFFFFFE            ; Get the first gamma table ID 
  574. kGammaTableIDNoMoreTables        EQU        $FFFFFFFD            ; Used to indicate end of list 
  575. kGammaTableIDSpecific            EQU        $00                    ; Return the info for the given table id 
  576. ;  Constants for GetMultiConnect call
  577.  
  578. kGetConnectionCount                EQU        $FFFFFFFF            ; Used to get the number of possible connections in a “multi-headed” framebuffer environment.
  579. kActivateConnection                EQU        $00                    ; Used for activating a connection (csConnectFlags value).
  580. kDeactivateConnection            EQU        $0200                ; Used for deactivating a connection (csConnectFlags value.)
  581. VDResolutionInfoRec        RECORD 0
  582. csPreviousDisplayModeID     ds.l    1                ; offset: $0 (0)        ;  ID of the previous resolution in a chain 
  583. csDisplayModeID             ds.l    1                ; offset: $4 (4)        ;  ID of the next resolution 
  584. csHorizontalPixels         ds.l    1                ; offset: $8 (8)        ;  # of pixels in a horizontal line at the max depth 
  585. csVerticalLines             ds.l    1                ; offset: $C (12)        ;  # of lines in a screen at the max depth 
  586. csRefreshRate             ds.l    1                ; offset: $10 (16)        ;  Vertical Refresh Rate in Hz 
  587. csMaxDepthMode             ds.w    1                ; offset: $14 (20)        ;  0x80-based number representing max bit depth 
  588. csResolutionFlags         ds.l    1                ; offset: $16 (22)        ;  Reserved - flag bits 
  589. csReserved                 ds.l    1                ; offset: $1A (26)        ;  Reserved 
  590. sizeof                     EQU *                    ; size:   $1E (30)
  591.                         ENDR
  592. ; typedef struct VDResolutionInfoRec *    VDResolutionInfoPtr
  593.  
  594. VDVideoParametersInfoRec RECORD 0
  595. csDisplayModeID             ds.l    1                ; offset: $0 (0)        ;  the ID of the resolution we want info on 
  596. csDepthMode                 ds.w    1                ; offset: $4 (4)        ;  The bit depth we want the info on (0x80 based) 
  597. csVPBlockPtr             ds.l    1                ; offset: $6 (6)        ;  Pointer to a video parameter block 
  598. csPageCount                 ds.l    1                ; offset: $A (10)        ;  Number of pages supported by the resolution 
  599. csDeviceType             ds.l    1                ; offset: $E (14)        ;  Device Type:  Direct, Fixed or CLUT; 
  600. csDepthFlags             ds.l    1                ; offset: $12 (18)        ;  Flags 
  601. sizeof                     EQU *                    ; size:   $16 (22)
  602.                         ENDR
  603. ; typedef struct VDVideoParametersInfoRec * VDVideoParametersInfoPtr
  604.  
  605. VDGammaInfoRec            RECORD 0
  606. csLastGammaID             ds.l    1                ; offset: $0 (0)        ;  the ID of the previous gamma table 
  607. csNextGammaID             ds.l    1                ; offset: $4 (4)        ;  the ID of the next gamma table 
  608. csGammaPtr                 ds.l    1                ; offset: $8 (8)        ;  Ptr to a gamma table data 
  609. csReserved                 ds.l    1                ; offset: $C (12)        ;  Reserved 
  610. sizeof                     EQU *                    ; size:   $10 (16)
  611.                         ENDR
  612. ; typedef struct VDGammaInfoRec *        VDGammaInfoPtr
  613.  
  614. VDGetGammaListRec        RECORD 0
  615. csPreviousGammaTableID     ds.l    1                ; offset: $0 (0)        ;  ID of the previous gamma table 
  616. csGammaTableID             ds.l    1                ; offset: $4 (4)        ;  ID of the gamma table following csPreviousDisplayModeID 
  617. csGammaTableSize         ds.l    1                ; offset: $8 (8)        ;  Size of the gamma table in bytes 
  618. csGammaTableName         ds.l    1                ; offset: $C (12)        ;  Gamma table name (c-string) 
  619. sizeof                     EQU *                    ; size:   $10 (16)
  620.                         ENDR
  621. ; typedef struct VDGetGammaListRec *    VDGetGammaListPtr
  622.  
  623. VDRetrieveGammaRec        RECORD 0
  624. csGammaTableID             ds.l    1                ; offset: $0 (0)        ;  ID of gamma table to retrieve 
  625. csGammaTablePtr             ds.l    1                ; offset: $4 (4)        ;  Location to copy desired gamma to 
  626. sizeof                     EQU *                    ; size:   $8 (8)
  627.                         ENDR
  628. ; typedef struct VDRetrieveGammaRec *    VDRetrieveGammaPtr
  629.  
  630. VDSetHardwareCursorRec    RECORD 0
  631. csCursorRef                 ds.l    1                ; offset: $0 (0)        ;  reference to cursor data 
  632. csReserved1                 ds.l    1                ; offset: $4 (4)        ;  reserved for future use 
  633. csReserved2                 ds.l    1                ; offset: $8 (8)        ;  should be ignored 
  634. sizeof                     EQU *                    ; size:   $C (12)
  635.                         ENDR
  636. ; typedef struct VDSetHardwareCursorRec * VDSetHardwareCursorPtr
  637.  
  638. VDDrawHardwareCursorRec    RECORD 0
  639. csCursorX                 ds.l    1                ; offset: $0 (0)        ;  x coordinate 
  640. csCursorY                 ds.l    1                ; offset: $4 (4)        ;  y coordinate 
  641. csCursorVisible             ds.l    1                ; offset: $8 (8)        ;  true if cursor is must be visible 
  642. csReserved1                 ds.l    1                ; offset: $C (12)        ;  reserved for future use 
  643. csReserved2                 ds.l    1                ; offset: $10 (16)        ;  should be ignored 
  644. sizeof                     EQU *                    ; size:   $14 (20)
  645.                         ENDR
  646. ; typedef struct VDDrawHardwareCursorRec * VDDrawHardwareCursorPtr
  647.  
  648. VDSupportsHardwareCursorRec RECORD 0
  649. csSupportsHardwareCursor  ds.l    1                ; offset: $0 (0)
  650. ;  true if hardware cursor is supported 
  651. csReserved1                 ds.l    1                ; offset: $4 (4)        ;  reserved for future use 
  652. csReserved2                 ds.l    1                ; offset: $8 (8)        ;  must be zero 
  653. sizeof                     EQU *                    ; size:   $C (12)
  654.                         ENDR
  655. ; typedef struct VDSupportsHardwareCursorRec * VDSupportsHardwareCursorPtr
  656.  
  657. VDHardwareCursorDrawStateRec RECORD 0
  658. csCursorX                 ds.l    1                ; offset: $0 (0)        ;  x coordinate 
  659. csCursorY                 ds.l    1                ; offset: $4 (4)        ;  y coordinate 
  660. csCursorVisible             ds.l    1                ; offset: $8 (8)        ;  true if cursor is visible 
  661. csCursorSet                 ds.l    1                ; offset: $C (12)        ;  true if cursor successfully set by last set control call 
  662. csReserved1                 ds.l    1                ; offset: $10 (16)        ;  reserved for future use 
  663. csReserved2                 ds.l    1                ; offset: $14 (20)        ;  must be zero 
  664. sizeof                     EQU *                    ; size:   $18 (24)
  665.                         ENDR
  666. ; typedef struct VDHardwareCursorDrawStateRec * VDHardwareCursorDrawStatePtr
  667.  
  668. VDConvolutionInfoRec    RECORD 0
  669. csDisplayModeID             ds.l    1                ; offset: $0 (0)        ;  the ID of the resolution we want info on 
  670. csDepthMode                 ds.w    1                ; offset: $4 (4)        ;  The bit depth we want the info on (0x80 based) 
  671. csPage                     ds.l    1                ; offset: $6 (6)
  672. csFlags                     ds.l    1                ; offset: $A (10)
  673. csReserved                 ds.l    1                ; offset: $E (14)
  674. sizeof                     EQU *                    ; size:   $12 (18)
  675.                         ENDR
  676. ; typedef struct VDConvolutionInfoRec *    VDConvolutionInfoPtr
  677.  
  678. VDPowerStateRec            RECORD 0
  679. powerState                 ds.l    1                ; offset: $0 (0)
  680. powerFlags                 ds.l    1                ; offset: $4 (4)
  681. powerReserved1             ds.l    1                ; offset: $8 (8)
  682. powerReserved2             ds.l    1                ; offset: $C (12)
  683. sizeof                     EQU *                    ; size:   $10 (16)
  684.                         ENDR
  685. ; typedef struct VDPowerStateRec *        VDPowerStatePtr
  686.  
  687. ;    Private Data to video drivers.
  688. ;    
  689. ;    In versions of MacOS with multiple address spaces (System 8), the OS 
  690. ;    must know the extent of parameters in order to move them between the caller
  691. ;    and driver.  The old private-selector model for video drivers does not have
  692. ;    this information so:
  693. ;    
  694. ;    For post-7.x Systems private calls should be implemented using the cscPrivateCall
  695. ;
  696.  
  697. VDPrivateSelectorDataRec RECORD 0
  698. privateParameters         ds.l    1                ; offset: $0 (0)        ;  Caller's parameters
  699. privateParametersSize     ds.l    1                ; offset: $4 (4)        ;  Size of data sent from caller to driver
  700. privateResults             ds.l    1                ; offset: $8 (8)        ;  Caller's return area. Can be nil, or same as privateParameters.
  701. privateResultsSize         ds.l    1                ; offset: $C (12)        ;  Size of data driver returns to caller. Can be nil, or same as privateParametersSize.
  702. sizeof                     EQU *                    ; size:   $10 (16)
  703.                         ENDR
  704. VDPrivateSelectorRec    RECORD 0
  705. reserved                 ds.l    1                ; offset: $0 (0)        ;  Reserved (set to 0). 
  706. data                     ds        VDPrivateSelectorDataRec ; offset: $4 (4) <-- really an array of length one
  707. sizeof                     EQU *                    ; size:   $14 (20)
  708.                         ENDR
  709. VDDDCBlockRec            RECORD 0
  710. ddcBlockNumber             ds.l    1                ; offset: $0 (0)        ;  Input -- DDC EDID (Extended Display Identification Data) number (1-based) 
  711. ddcBlockType             ds.l    1                ; offset: $4 (4)        ;  Input -- DDC block type (EDID/VDIF) 
  712. ddcFlags                 ds.l    1                ; offset: $8 (8)        ;  Input -- DDC Flags
  713. ddcReserved                 ds.l    1                ; offset: $C (12)        ;  Reserved 
  714. ddcBlockData             ds.b    128                ; offset: $10 (16)        ;  Output -- DDC EDID/VDIF data (kDDCBlockSize) 
  715. sizeof                     EQU *                    ; size:   $90 (144)
  716.                         ENDR
  717. ; typedef struct VDDDCBlockRec *        VDDDCBlockPtr
  718.  
  719. ; typedef UInt32                         VDClutBehavior
  720.  
  721. ; typedef VDClutBehavior *                VDClutBehaviorPtr
  722.  
  723.  
  724. kSetClutAtSetEntries            EQU        0                    ; SetEntries behavior is to update clut during SetEntries call
  725. kSetClutAtVBL                    EQU        1                    ; SetEntries behavior is to upate clut at next vbl
  726.  
  727.     ENDIF ; __VIDEO__ 
  728.  
  729.